package com.itheima.reggie.mappers;

import com.itheima.reggie.entity.SetmealDish;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealDishMapper {

    void save(@Param("setmealDishes") List<SetmealDish> setmealDishes);

    void delete(@Param("setmealIds") Long[] setmealIds);

    @Select("select * from setmeal_dish where setmeal_id=#{setmealId}")
    List<SetmealDish> findBySetmealId(Long setmealId);
}
